package com.kehutong.charge.util.enums;

import java.util.EnumSet;
import java.util.HashMap;
import org.coraframework.util.HashID;

/**
 * 员工催费方式
 * @program: kht
 * @author: joneron
 * @create: 2021/7/5
 **/
public enum UrgingEmployeeTypeEnum implements HashID {

	URGING_INNER("1", "站内信催费"),
	URGING_SMS("2", "短信催费"),
	URGING_WX("3", "微信催费"),
	URGING_APP("4", "应用消息催费"),
	;
	private final String id;
	private final String desc;

	UrgingEmployeeTypeEnum(String id, String desc) {
		this.id = id;
		this.desc = desc;
	}

	@Override
	public String getId() {
		return id;
	}
	
	@Override
	public String getDesc() {
		return desc;
	}

	/**
	 * 集合Map
	 */
	public static HashMap<String,String> getMap() {

		HashMap<String, String> map = new HashMap<>();
		for (UrgingEmployeeTypeEnum enums : EnumSet.allOf(UrgingEmployeeTypeEnum.class)) {
			map.put(enums.id, enums.desc);
		}
		return map;
	}

}
